import { Component, AssetManager  } from 'kokomi.js';
import { EquirectangularReflectionMapping } from 'three';
import TestObject from '@/experience/world/TestObject';
import Slider from './Slider';
import type Experience  from '../Experience';

export default class World extends Component{

    declare base: Experience;

    public slider!: Slider;

    constructor(base: Experience){
        super(base);

        this.base.am.on('ready', async () => {

            this.slider = new Slider(this.base);

            await this.slider.addExisting();

            document.querySelector(".loader-screen")?.classList.add("hollow");

        });
        
    }
}